package com.aznest.service;

import com.aznest.entity.Account;
import com.aznest.entity.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    void add(User user);

    void update(User user);

    void deleteById(Integer id);

    void deleteBatch(List<Integer> ids);

    PageInfo<User> selectPage(User user, Integer pageNum, Integer pageSize);

    Account login(Account account);

    void register(Account account);

    void updatePassword(Account account);

    Account selectById(Integer integer);
}
